/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package businessData;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author cam
 */

public class SupplyPlan implements Serializable{
       private  List<Order> supplyPlanList;    

    public SupplyPlan() {
        this.supplyPlanList = new ArrayList<Order>();
    }

    
    public SupplyPlan(List<Order> supplyPlanList) {
        this.supplyPlanList = supplyPlanList;
    }

    public List<Order> getSupplyPlanList() {
        return supplyPlanList;
    }

    public void setSupplyPlanList(List<Order> supplyPlanList) {
        this.supplyPlanList = supplyPlanList;
    }
    
    public void addChild(Order order) { 
        supplyPlanList.add(order);
    }    
    

}
